<?php
use yii\helpers\Html;
$this->registerMetaTag(['name' => 'keywords', 'content' => '游戏, 二狐, 琵琶网']);
$this->registerMetaTag(['name' => 'description', 'content' => '二狐网站后台管理'], 'description');
?>
<?php $this->beginPage() ?>
<?php $this->title='二狐后台管理中心' ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="<?= Yii::$app->language ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="author" content="jois" />
<?= Html::csrfMetaTags() ?>
<title><?php if(isset($this->blocks['title'])):;?><?=$this->blocks['title'];?>-<?php endif;?><?= Html::encode($this->title) ?></title>
<link rel="shortcut icon" href="<?php echo Yii::$app->request->baseUrl; ?>/upload_files/init/logo-icon.png" type="image/ico">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-easy-pie-chart/jquery.easy-pie-chart.css')}" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/js/vector-map/jquery-jvectormap-1.1.1.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/css/slidebars.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/js/switchery/switchery.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-ui/jquery-ui-1.10.1.custom.min.css" />
<!-- 请放在这个位置，有些必须要放在style.css之前的css -->
<?php if(isset($this->blocks['css'])):?><?=$this->blocks['css'];?><?php else:?><?php endif;?>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/js/icheck/skins/all.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/css/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/css/style.css">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::$app->request->baseUrl; ?>/css/style-responsive.css">
<?php if(isset($this->blocks['head'])):?><?=$this->blocks['head'];?><?php else:?><?php endif;?>
</head>

<body class="sticky-header">
<?php $this->beginBody() ?>
<section>
	<div class="sidebar-left">
    	<?php include 'menu.php';?>
	</div>
    <div class="body-content" >
        <?php include 'header.php';?>

        <div class="page-head">
        	<h3 class="m-b-less">
        	    <?php if(isset($this->blocks['title'])):;?><?=$this->blocks['title'];?><?php else:?>首页<?php endif;?>
            </h3>
            <!--<span class="sub-title">Welcome to Static Table</span>-->
            <div class="state-information">
                <ol class="breadcrumb m-b-less bg-less">
                    <li><a href="<?php echo Yii::$app->urlManager->createUrl('/')?>">主页</a></li>
                    <?php if(isset($this->blocks['breadcrumb'])):;?>
                    <?=$this->blocks['breadcrumb'];?><?php else:?>
                    <?php endif;?>
                </ol>
            </div>
        </div>

        <div class="wrapper">
        	<?php include 'message.php';?>
        	<?=$content ?>
        </div>

        <footer>
            Copyright 2015 &copy; 厦门琵琶网-免费手机网游下载第一门户.
        </footer>

        <!-- <div class="sb-slidebar sb-right sb-style-overlay">
        {include 'Admin/sidebar-right.tpl'}
        </div> -->
    </div>
</section>

<!-- Modal -->
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body" id="alertMessage"></div>
            <div class="modal-footer">
                <button data-dismiss="modal" class="btn btn-success" type="button">确定</button>
            </div>
        </div>
    </div>
</div>
<!-- modal -->

<!-- Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog"> <!-- modal-sm modal-lg -->
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">操作确认</h4>
            </div>
            <div class="modal-body" id="confirmMessage"></div>
            <div class="modal-footer">
                <button data-dismiss="modal" class="btn btn-default" type="button" id="confirmCancelAction">取消</button>
                <button data-dismiss="modal" class="btn btn-success" type="button" id="confirmAction">确定</button>
            </div>
        </div>
    </div>
</div>
<!-- modal -->


<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-ui/jquery-ui-1.10.1.custom.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-migrate.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/modernizr.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery.nicescroll.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/slidebars.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/switchery/switchery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/switchery/switchery-init.js"></script>
<!--flot chart -->
<!-- <script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/flot-spline.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.resize.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.tooltip.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.pie.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.selection.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.stack.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/flot-chart/jquery.flot.crosshair.js"></script> -->
<!--earning chart init-->
<!-- <script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/earning-chart-init.js"></script> -->
<!--Sparkline Chart-->
<!-- <script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/sparkline/jquery.sparkline.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/sparkline/sparkline-init.js"></script> -->
<!--easy pie chart-->
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-easy-pie-chart/jquery.easy-pie-chart.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/easy-pie-chart.js"></script>
<!--vectormap-->
<!-- <script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/vector-map/jquery-jvectormap-1.2.2.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/vector-map/jquery-jvectormap-world-mill-en.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/dashboard-vmap-init.js"></script> -->
<!--Icheck-->
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/icheck/skins/icheck.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/todo-init.js"></script>
<!--jquery countTo-->
<!-- <script  type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery-countTo/jquery.countTo.js"></script> -->
<!--owl carousel-->
<!-- <script   type="text/javascript"src="<?php echo Yii::$app->request->baseUrl; ?>/js/owl.carousel.js"></script> -->
<!--common scripts for all pages-->
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/scripts.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/ajaxfileupload.js"></script>
<script type="text/javascript" src="<?php echo Yii::$app->request->baseUrl; ?>/js/jquery.qrcode.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	//app下载二维码
	$("#app-download-qrcode").click(function(){
	    $("#appDownloadModal").modal('show');
	    $('#appDownloadQrcode').html("");
	    $("#appDownloadQrcode").qrcode({
	        //render: "div", //table方式
	        width: 200, //宽度
	        height:200, //高度
	        text: "http://m.kaoqin.com/app-download" //任意内容
	    });
	});

    //保存二维码
	$("#saveQrcode").click(function(){
		window.location.href="";
	});
});

function ialert(msg) {
    $("#alertMessage").html(msg);
    $("#alertModal").modal('show');
}

function iconfirm(msg, func)
{
    $("#confirmMessage").html(msg);
    $("#confirmModal").modal('show');
    $("#confirmAction").one('click', function() {
        func();
    });
    if (arguments[2]) {
        $("#confirmCancelAction").one('click', function() {
            arguments[2]();
        })
    }
    //$('#confirmModal').on('hidden.bs.modal', function (e) {
    //    $("#confirmAction").unbind('click');
    //})
}
</script>
 <?php if(isset($this->blocks['script'])):;?><?=$this->blocks['script'];?><?php else:?><?php endif;?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
